<?php if ($_GET['pg'] == 'offers' && $_GET['cid'] != '2'){?>
<div id="news_root">
	<div class="news_titlu"><a href="../../../news_trends.html">News.Trends</a></div>
	<img alt="" src="../../../templates/default/images/border-top-news.png" width="195" height="15">
	<div id="news_holder">
	<?php 
		$i = 0;
		$data = mysql_query("select * from dt_news where news_visible = '1' order by news_id desc limit 0,3");
		while ($row = mysql_fetch_array($data)){
			if ($i % 2)
				echo '<div class="news_child_b">';
			else 
				echo '<div class="news_child_a">';

			$str = limitclear($row['news_content'], 100).'...';
			
			echo '<a href="../../../news/'.$row['news_id'].'/'.cleanitup($row['news_title']).'.html">'.$str.'</a>';
			echo '<div class="news_more">';
			if ($i % 2)
				echo '<a href="../../../news/'.$row['news_id'].'/'.cleanitup($row['news_title']).'.html">Mai mult</a>';
			else 
				echo '<a href="../../../news/'.$row['news_id'].'/'.cleanitup($row['news_title']).'.html">Mai mult</a>';
				 
			echo '&nbsp;<img src="../../../templates/default/images/more.png" width="9" height="9"></div>';
			echo '</div>';
			
			$i++;
		}
	?>
	</div>
	<img alt="" src="../../../templates/default/images/border-bottom-news.png" width="195" height="15">
</div>

<?php } else {?>

<div id="news_root">
    <div class="news_titlu"><a href="../../../news_trends.html">News.Trends</a></div>
    <img src="../../../templates/default/images/border-top-news.png" width="195" height="15">
    <div id="news_holder">
    <?php 
            $i = 0;
            $data = mysql_query("select * from dt_news where news_visible = '1' order by news_id desc limit 0,3");
            while ($row = mysql_fetch_array($data)){
                    if ($i % 2)
                            echo '<div class="news_child_b">';
                    else 
                            echo '<div class="news_child_a">';

                    $str = limitclear($row['news_content'], 100).'...';

                    echo '<a href="../../../news/'.$row['news_id'].'/'.cleanitup($row['news_title']).'.html">'.$str.'</a>';
                    echo '<div class="news_more_corp">';
                    if ($i % 2)
                            echo '<a href="../../../news/'.$row['news_id'].'/'.cleanitup($row['news_title']).'.html">Mai mult</a>';
                    else 
                            echo '<a href="../../../news/'.$row['news_id'].'/'.cleanitup($row['news_title']).'.html">Mai mult</a>';

                    echo '&nbsp;<img src="../../../templates/default/images/more.png" width="9" height="9"></div>';
                    echo '</div>';

                    $i++;
            }
    ?>
    </div>
    <img alt="" src="../../../templates/default/images/border-bottom-news.png" width="195" height="15">
</div>
<?php }?>